import request from '@/plugin/axios/other'

/**
 * 获取藏品分页列表
 * @param {*} data {pageSize pageNum dynasty keyword}
 */
export function getCollectionPage (data) {
  return request({
    url: '/collection/getCollectionPage',
    method: 'get',
    params: data
  })
}

/**
 * 获取藏品详情
 * @param {*} data {collectionId}
 */
export function getCollectionDetail (data) {
  return request({
    url: '/collection/getCollectionDetail',
    method: 'get',
    params: data
  })
}

/**
 * 添加藏品接口
 * @param {*} data {}
 */
export function addCollection (data) {
  return request({
    url: '/collection/addCollection',
    method: 'POST',
    params: data
  })
}

/**
 * 修改藏品接口
 * @param {*} data {}
 */
export function updateCollection (data) {
  return request({
    url: '/collection/updateCollection',
    method: 'POST',
    params: data
  })
}

/**
 * 获取藏品评论回复分页列表
 * @param {*} data {}
 */
export function getCollectionCommentPage (data) {
  return request({
    url: '/collection/getCollectionCommentPage',
    method: 'get',
    params: data
  })
}

/**
 * 删除藏品评论接口
 * @param {*} data {}
 */
export function deleteCollectionComment (data) {
  return request({
    url: '/collection/deleteCollectionComment',
    method: 'post',
    params: data
  })
}

/**
 * 删除藏品评论回复
 * @param {*} data
 */
export function deleteCollectionReply (data) {
  return request({
    url: '/collection/deleteCollectionReply',
    method: 'post',
    params: data
  })
}
